<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Hero War: Référence de la classe gfx::Map</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css">
<link href="../../doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Généré par Doxygen 1.5.8 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="../../index.html"><span>Page&nbsp;principale</span></a></li>
      <li><a href="../../namespaces.html"><span>Espaces&nbsp;de&nbsp;nommage</span></a></li>
      <li class="current"><a href="../../annotated.html"><span>Classes</span></a></li>
      <li><a href="../../files.html"><span>Fichiers</span></a></li>
      <li><a href="../../examples.html"><span>Exemples</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="../../annotated.html"><span>Liste&nbsp;des&nbsp;classes</span></a></li>
      <li><a href="../../hierarchy.html"><span>Hiérarchie&nbsp;des&nbsp;classes</span></a></li>
      <li><a href="../../functions.html"><span>Membres&nbsp;de&nbsp;classe</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="../../d0/d1c/namespacegfx.html">gfx</a>::<a class="el" href="../../dc/dcf/classgfx_1_1_map.html">Map</a>
  </div>
</div>
<div class="contents">
<h1>Référence de la classe gfx::Map</h1><!-- doxytag: class="gfx::Map" --><!-- doxytag: inherits="vector&lt; vRow &gt;" -->Classes qui gère la matrices d'une map.  
<a href="#_details">Plus de détails...</a>
<p>
<code>#include &lt;<a class="el" href="../../db/dea/_map_8h-source.html">Map.h</a>&gt;</code>
<p>
<div class="dynheader">
Graphe d'héritage de gfx::Map:</div>
<div class="dynsection">
<p><center><img src="../../d8/d93/classgfx_1_1_map__inherit__graph.png" border="0" usemap="#d9/d8d/gfx_1_1_map__inherit__map" alt="Inheritance graph"></center>
<map name="d9/d8d/gfx_1_1_map__inherit__map">
<area shape="rect" href="../../d2/dc0/classgfx_1_1_map_layer.html" title="Map qui affiche dynamiquement des drawable un par un selon le viewport." alt="" coords="5,155,109,181"></map>
<center><font size="2">[<a href="../../graph_legend.html">légende</a>]</font></center></div>

<p>
<a href="../../dc/db8/classgfx_1_1_map-members.html">Liste de tous les membres</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Fonctions membres publiques</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/dcf/classgfx_1_1_map.html#e4c2791b5fc6e478748ab32a942f0e58">Map</a> (const int &amp;w, const int &amp;h)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8fc80582bca7260db8f7e993e1af6465"></a><!-- doxytag: member="gfx::Map::Map" ref="8fc80582bca7260db8f7e993e1af6465" args="(const vMap &amp;map)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>Map</b> (const <a class="el" href="../../d0/d1c/namespacegfx.html#059bb226deb1289a6b2ee8a9ae057531">vMap</a> &amp;map)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="../../d0/d1c/namespacegfx.html#059bb226deb1289a6b2ee8a9ae057531">vMap</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/dcf/classgfx_1_1_map.html#36979e345931a619760cdae922b0defc">getSubMap</a> (const sf::IntRect &amp;zone) const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8a40d8fd2f97e34e36eec90e4038b465"></a><!-- doxytag: member="gfx::Map::setSubMap" ref="8a40d8fd2f97e34e36eec90e4038b465" args="(const sf::IntRect &amp;zone, const vMap &amp;map)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/dcf/classgfx_1_1_map.html#8a40d8fd2f97e34e36eec90e4038b465">setSubMap</a> (const sf::IntRect &amp;zone, const <a class="el" href="../../d0/d1c/namespacegfx.html#059bb226deb1289a6b2ee8a9ae057531">vMap</a> &amp;map)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Assigne à une zone de la map une autre map. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2b9b241b720bae4f1a1d0fd4e8d0f1f5"></a><!-- doxytag: member="gfx::Map::setSubMap" ref="2b9b241b720bae4f1a1d0fd4e8d0f1f5" args="(const sf::IntRect &amp;zone, int val)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/dcf/classgfx_1_1_map.html#2b9b241b720bae4f1a1d0fd4e8d0f1f5">setSubMap</a> (const sf::IntRect &amp;zone, int val)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Assigne à une zone de la map une valeur val. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8262e32ad03e463559bb1b4d7b8fa43a"></a><!-- doxytag: member="gfx::Map::getWidth" ref="8262e32ad03e463559bb1b4d7b8fa43a" args="() const " -->
int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/dcf/classgfx_1_1_map.html#8262e32ad03e463559bb1b4d7b8fa43a">getWidth</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Retourne la largeur de la map. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5f9ff7f55c4f5ec6015b5e52ec2d0df8"></a><!-- doxytag: member="gfx::Map::getHeight" ref="5f9ff7f55c4f5ec6015b5e52ec2d0df8" args="() const " -->
int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/dcf/classgfx_1_1_map.html#5f9ff7f55c4f5ec6015b5e52ec2d0df8">getHeight</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Retourne la hauteur de la map. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d36d3ffe5e5e13c34a5bf6f7810f355c"></a><!-- doxytag: member="gfx::Map::fit" ref="d36d3ffe5e5e13c34a5bf6f7810f355c" args="(const sf::IntRect &amp;zone) const " -->
sf::IntRect&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/dcf/classgfx_1_1_map.html#d36d3ffe5e5e13c34a5bf6f7810f355c">fit</a> (const sf::IntRect &amp;zone) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Retourne un rectangle de zone adapter de maniere à ce que zone ne déborde pas de la map. <br></td></tr>
</table>
<hr><a name="_details"></a><h2>Description détaillée</h2>
Classes qui gère la matrices d'une map. <dl compact><dt><b>Exemples: </b></dt><dd>

<p>
<a class="el" href="../../df/d25/main_8cpp-example.html#_a1">main.cpp</a>.</dl>
<p>Définition à la ligne <a class="el" href="../../db/dea/_map_8h-source.html#l00018">18</a> du fichier <a class="el" href="../../db/dea/_map_8h-source.html">Map.h</a>.</p>
<hr><h2>Documentation des constructeurs et destructeur</h2>
<a class="anchor" name="e4c2791b5fc6e478748ab32a942f0e58"></a><!-- doxytag: member="gfx::Map::Map" ref="e4c2791b5fc6e478748ab32a942f0e58" args="(const int &amp;w, const int &amp;h)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">gfx::Map::Map           </td>
          <td>(</td>
          <td class="paramtype">const int &amp;&nbsp;</td>
          <td class="paramname"> <em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int &amp;&nbsp;</td>
          <td class="paramname"> <em>h</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<dl compact><dt><b>Paramètres:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>w</em>&nbsp;</td><td>Largeur de la map </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>h</em>&nbsp;</td><td>Hauteur de la map </td></tr>
  </table>
</dl>

</div>
</div><p>
<hr><h2>Documentation des fonctions membres</h2>
<a class="anchor" name="36979e345931a619760cdae922b0defc"></a><!-- doxytag: member="gfx::Map::getSubMap" ref="36979e345931a619760cdae922b0defc" args="(const sf::IntRect &amp;zone) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d0/d1c/namespacegfx.html#059bb226deb1289a6b2ee8a9ae057531">vMap</a> gfx::Map::getSubMap           </td>
          <td>(</td>
          <td class="paramtype">const sf::IntRect &amp;&nbsp;</td>
          <td class="paramname"> <em>zone</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Renvoie une sous map qui fait partie de la zone passé en paramètre. La map peut être tronqué si la zone sort de la map. <dl compact><dt><b>Exemples: </b></dt><dd>
<a class="el" href="../../df/d25/main_8cpp-example.html#a5">main.cpp</a>.</dl>
</div>
</div><p>
<hr>La documentation de cette classe a été générée à partir du fichier suivant :<ul>
<li>C:/Documents and Settings/israhal17/Bureau/devel/HeroWar/include/gfx/<a class="el" href="../../db/dea/_map_8h-source.html">Map.h</a></ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Généré le Wed Feb 4 02:28:43 2009 pour Hero War par&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="../../doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address>
</body>
</html>
